package br.imr.model;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Entity;

@Entity
@Table(name = "ministerio", catalog = "imrdatabase")
public class Ministerio implements Serializable {

	private Integer id;
	private String nomeMinisterio;

	public Ministerio() {
	}

	public Ministerio(Integer id) {
		this.id = id;
	}

	public Ministerio(Integer id, String nomeMinisterio) {
		this.id = id;
		this.nomeMinisterio = nomeMinisterio;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "nomeMinisterio", length = 45)
	public String getNomeMinisterio() {
		return this.nomeMinisterio;
	}

	public void setNomeMinisterio(String nomeMinisterio) {
		this.nomeMinisterio = nomeMinisterio;
	}

}